package cn.gson.financial.kernel.model.mapper;

import cn.gson.financial.kernel.model.entity.Currency;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface CurrencyMapper extends BaseMapper<Currency> {
    int batchInsert(@Param("list") List<Currency> list);

    Integer selectByName(@Param("entity") Currency entity);

    Integer selectByCode(@Param("entity") Currency entity);

    Integer updateCurrency(@Param("entity") Currency entity);

    Integer selectSubjectById(@Param("id") Integer id);

    Integer deleteCurrency(Integer id);

    List<Currency> currencyList(@Param("accountSetsId")Integer accountSetsId);

    List<Currency> initCurrencyList(@Param("id")Integer accountSetsId, @Param("type")String type);
}